//
//  CYYNetWorkManager+PartyDetail.m
//  LetsPartyBmob
//
//  Created by rimi on 15/9/9.
//  Copyright (c) 2015年 柴阳阳. All rights reserved.
//

#import "CYYNetWorkManager+PartyDetail.h"

@implementation CYYNetWorkManager (PartyDetail)
//根据活动Id进入活动详情
+ (void)partyDetailWithObjectId:(NSString *)objectId
                         sucess:(SucessPartyDetail)sucess
                           fail:(Fail)fail {
    //查找Parties表
    BmobQuery   *bquery = [BmobQuery queryWithClassName:@"Parties"];
    //查找Parties表里面id为obejctId的数据
    [bquery getObjectInBackgroundWithId:objectId block:^(BmobObject *object,NSError *error){
        if (error) {
            fail(error);
        }else{
            sucess(object);
        }
    }];

}

@end
